package cn.apelx.shardingjdbc.domain;

import lombok.Getter;
import lombok.ToString;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * 自定义分片算法实体
 *
 * @author apelx
 * @since 2022-05-15
 */
@ToString
@Getter
@Entity
@Table(name = "customer_algorithm")
public class CustomerAlgorithmEntity implements Serializable {

    @Id
    private Integer id;

    private String name;

    private String remark;

    protected CustomerAlgorithmEntity() {
    }

    public CustomerAlgorithmEntity(Integer id, String name, String remark) {
        this.id = id;
        this.name = name;
        this.remark = remark;
    }
}
